import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import bus from  './utils/bus';
import $ from 'jquery';
import Vant from 'vant';
import './registerServiceWorker';
import './assets/css/style.css';
// import './assets/css/common.scss';
import 'vant/lib/index.css';
import utils from './utils/utils'
import appInit from './utils/appInit'
import  VConsole  from  'vconsole';
// const vConsole = new VConsole();
Vue.use(Vant);

Vue.prototype.$ = $;
Vue.prototype.$tools = utils;
Vue.prototype.$store = store;
Vue.prototype.$bus = bus;

appInit.mainInit();

Vue.config.productionTip = false;
const createVue = () => {
  new Vue({
    router,
    store,
    render: h => h(App)
  }).$mount('#app');
};

// if (process.env.NODE_ENV !== 'development') {
  createVue();
// } else {
//   appInit.appInit(createVue);
// }
